import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
    selected: [],
    availableWidth: '',
    imageSrc: '',
    capacityData: {
        used: 0,
        capacity: 0,
        progress: 0
    }
}

const mutations = {
    setSelected(state, value) {
        state.selected = value;
    },
    setAvailableWidth(state, value) {
        state.availableWidth = value;
    },
    setImageSrc(state, value) {
        state.imageSrc = value;
    },
    setCapacityData(state, value) {
        state.capacityData = value;
    }
}
export default new Vuex.Store({
    state,
    mutations
})
